import { deleted, get, post, put } from "@/api/client";

/**
 * page
 * size
 * @param params
 * @returns {*}
 */
export function getActorPage(params) {
	return get("/actor", params);
}

/**
 * 获取演员信息
 * @param id
 * @returns {*}
 */
export function getActorById(id) {
	return get(`/actor/${id}`);
}

/**
 * 修改演员信息
 * @param actor
 * @returns {*}
 */
export function updateActor(actor) {
	return put("/actor", actor);
}

/**
 * 删除演员
 * @param id
 */
export function deletedActor(id) {
	return deleted("/actor", { id });
}

/**
 * 保存演员
 * @param ac
 * @returns {*}
 */
export function saveActor(ac) {
	return post("/actor", ac);
}

/**
 * 查询全部
 */
export function getActorList() {
	return get("/actor/list");
}
